package com.example.test;

import com.example.play.Animation;
import com.example.play.AudioPlay;

import java.io.File;

/**
 * @author gulihua
 * @Description 暗号
 * @date 2022-11-13 17:52
 */
public class AnHao {
    public static void main(String[] args) {
        String path =
                new File("").getAbsolutePath() + File.separator + "src/main/resources/notes" + File.separator;
        String notes =
                " 1+  2+  3+  5+  " +
                        " 6+  0   5+  0   6+  0   5+  0   " +
                        " 6+  0   7+  0   6+  0   5+  0   " +
                        " 6+  0   5+  0   6+  0   5+  0   " +

                        " 6+  0   5+  0   3+  0   5+  0   " +
                        " 6+  0   5+  0   6+  0   5+  0   " +
                        " 6+  0   7+  0   6+  0   5+  0   " +
                        " 6+  0   5+  0   6+  0   5+  0   " +

                        //我想要的，想给的
                        " 0   0   0   0   0   1+  3+  5+  " +
                        " 5+  0   3+  5+  5+  0   3+  5+  " +
                        " 5+  0   3+  0   1+  1+  3+  5+  " +
                        " 5+  0   3+  5+  5+  0   3+  5+  " +

                        " 5+  0   3+  0   1+  1+  3+  5+  " +
                        " 5+  0   3+  5+  5+  0   3+  5+  " +
                        " 6+  6+  6+  5+  5+  5+  5+  0   " +
                        " 6+  6+  6+  6+  6+  5+  5+  0   " +

                        //17 这是我们的暗号
                        " 5+  3++ 3++ 4++ 3++ 1++ 1++ 0   " +
                        " 5+  3+  3+  0   5+  3+  3+  0   " +
                        " 5+  0   3+  0   1+  1+  3+  5+  " +
                        " 5+  0   3+  5+  5+  0   3+  5+  " +

                        //21
                        " 5+  0   3+  0   1+  1+  3+  5+  " +
                        " 5+  0   3+  5+  5+  0   3+  5+  " +
                        " 6+  6+  6+  6+  6+  0   5+  0   " +
                        " 6+  6+  6+  6+  6+  5+  5+  6+  " +

                        //25
                        " 5+  7+  0+  6+  6+  5+  6+  7+  " +
                        " 1++ 0   1++ 1++ 0   7+  0   6+  " +
                        " 6+  5+  0   0   0   5+  3+  4+  " +
                        " 5+  0   3+  3+  0   7+  0   2++ " +

                        //29
                        " 0   1++ 0   0   0   0   6+  1++ " +
                        " 2++ 0   6+  1++ 2++ 0   6+  1++ " +
                        " 3++ 3++ 3++ 2++ 2++ 0   1++ 2++ " +
                        " 3++ 0   1++ 2++ 3++ 0   3++ 0   " +

                        //33
                        " 0   2++ 0   0   0   0   0   0   " +
                        " 1+  0   1+  3+  0   5+  0   0   " +
                        " 5+  0   4+  3+  0   4+  0   0   " +
                        " 3+  0   2+  3+  0   1++ 0   1++ " +

                        //37
                        " 0   0   0   0   0   0   0   0   " +
                        " 3+  0   2+  3+  3+  2++ 0   2++ " +
                        " 2++ 0   0   0   0   0   1++ 2++ " +
                        " 3++ 0   3++ 3++ 0   3++ 4++ 0   " +
                        //41
                        " 0   0   0   0   0   0   0   0   " +
                        " 1+  0   2+  3+  0   5+  0   0   " +
                        " 5+  0   4+  3+  0   3+  4+  0   " +
                        " 3+  0   2+  3+  0   1++ 0   0   " +


                        //45
                        " 0   0   0   0   0   0   0   0   " +
                        " 3+  0   2+  3+  0   2++ 0   2++ " +
                        " 0   0   0   0   0   0   1++ 2++ " +
                        " 3++ 0   3++ 3++ 3++ 3++ 0   3++ " +

                        //49
                        " 3++ 0   2++ 1++ 0   7++ 0   1++ " +
                        " 6+  0   5+  0   6+  0   5+  0   " +
                        " 6+  0   7+  0   6+  0   5+  0   " +
                        " 6+  0   5+  0   6+  0   5+  0   " +

                        //53
                        " 6+  0   5+  0   3+  0   5+  0   " +
                        " 6+  0   5+  0   6+  0   5+  0   " +
                        " 6+  0   7+  0   6+  0   5+  0   " +
                        " 6+  0   5+  0   6+  0   5+  0   " +

                        //57
                        " 0   0   2++ 1++ 0   7+  0   1++ " +
                        " 0   0   0   0   0   0   0   0   " +
                        " 0   0   0   0   0   0   0   0   " +
                        " 0   0   0   0   0   0   0   0   " +

                        //17
                        " 5+  3+  3+  0   5+  3+  3+  0   " +
                        " 5+  0   3+  0   1+  1+  3+  5+  " +
                        " 5+  0   3+  5+  5+  0   3+  5+  " +

                        //21
                        " 5+  0   3+  0   1+  1+  3+  5+  " +
                        " 5+  0   3+  5+  5+  0   3+  5+  " +
                        " 6+  6+  6+  6+  6+  0   5+  0   " +
                        " 6+  6+  6+  6+  6+  5+  5+  6+  " +

                        //25
                        " 5+  7+  0+  6+  6+  5+  6+  7+  " +
                        " 1++ 0   1++ 1++ 0   7+  0   6+  " +
                        " 6+  5+  0   0   0   5+  3+  4+  " +
                        " 5+  0   3+  3+  0   7+  0   2++ " +

                        //29
                        " 0   1++ 0   0   0   0   6+  1++ " +
                        " 2++ 0   6+  1++ 2++ 0   6+  1++ " +
                        " 3++ 3++ 3++ 2++ 2++ 0   1++ 2++ " +
                        " 3++ 0   1++ 2++ 3++ 0   3++ 0   " +

                        //33
                        " 0   2++ 0   0   0   0   0   0   " +
                        " 1+  0   1+  3+  0   5+  0   0   " +
                        " 5+  0   4+  3+  0   4+  0   0   " +
                        " 3+  0   2+  3+  0   1++ 0   1++ " +

                        //37
                        " 0   0   0   0   0   0   0   0   " +
                        " 3+  0   2+  3+  3+  2++ 0   2++ " +
                        " 2++ 0   0   0   0   0   1++ 2++ " +
                        " 3++ 0   3++ 3++ 0   3++ 4++ 0   " +
                        //41
                        " 0   0   0   0   0   0   0   0   " +
                        " 1+  0   2+  3+  0   5+  0   0   " +
                        " 5+  0   4+  3+  0   3+  4+  0   " +
                        " 3+  0   2+  3+  0   1++ 0   0   " +


                        //45
                        " 0   0   0   0   0   0   0   0   " +
                        " 3+  0   2+  3+  0   2++ 0   2++ " +
                        " 0   0   0   0   0   0   1++ 2++ " +
                        " 3++ 0   3++ 3++ 3++ 3++ 0   3++ " +


                        //57
                        " 0   0   2++ 1++ 0   7+  0   1++ " +
                        " 0   0   0   0   0   0   0   0   " +
                        " 0   0   0   0   0   0   0   0   " +
                        " 0   0   0   0   0   0   0   0   ";



        String accompaniments =
                " 0   0   0   0   " +
                        " 6-- 2-  3-  5-  5-  2-  3-  5-  " +
                        " 7-- 2-  3-  5-  0   2-  3-  5-  " +
                        " 1-  2-  3-  5-  0   2-  3-  5-  " +

                        " 1-  2-  3-  5-  6-  5-  3-  2-  " +
                        " 6-- 2-  3-  5-  0   2-  3-  5-  " +
                        " 7-- 2-  3-  5-  0   2-  3-  5-  " +
                        " 1-  2-  3-  5-  0   2-  3-  5-  " +


                        //你想说的
                        " 0   0   0   0   0   0   0   0   " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        //13
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        //17
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +



                        //21
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +

                        //25
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        //29
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 2-- 6-- 2-  6-- 4-  6-- 2-  6-- " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +

                        //33
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        //37
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        //41
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        //45
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        //49
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 6-- 2-  3-  5-  0   2-  3-  5-  " +
                        " 7-- 2-  3-  5-  0   2-  3-  5-  " +
                        " 1-- 2-  3-  5-  0   2-  3-  5-  " +

                        //53
                        " 1-- 2-  3-  5-  6   5-  3-  2-  " +
                        " 6-- 2-  3-  5-  0   2-  3-  5-  " +
                        " 7-- 2-  3-  5-  0   2-  3-  5-  " +
                        " 1-- 2-  3-  5-  0   2-  3-  5-  " +

                        //57
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   2   0   0   1   5-  " +
                        " 1-  5-  1   2   0   0   1   5-  " +
                        " 1-  5-  1   2   0   0   1   5-  " +

                        //17
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        //21
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +

                        //25
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +

                        //29
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 2-- 6-- 2-  6-- 4-  6-- 2-  6-- " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +


                        //33
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        //37
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        //41
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 1-  5-  1   5-  3   5-  1   5-  " +
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        //45
                        " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +

                        //拥有你 57
                        " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                        " 1-  5-  1   2   0   0   1   5-  " +
                        " 1-  5-  1   2   0   0   1   5-  " +
                        " 1-  5-  1   2   0   0   1   5-  ";

                        //你说你想逃开松手

        String note1 =
                        //61
                        " 0   0   0   0   0   0   0   0   " +
                                " 0   0   2++ 0   2++ 0   2++ 0   " +
                                " 2++ 0   2++ 3++ 0   2++ 0   1++ " +
                                " 2++ 0   2++ 0   2++ 0   2++ 0   " +
                                //65
                                " 2++ 0   1++ 1++ 0   0   6+  1++ " +
                                " 0   3++ 0   3++ 0   3++ 0   3++ " +
                                " 3++ 2++ 2++ 2++ 2++ 1++ 1++ 3++ " +
                                " 2++ 0   0   0   0   0   0   0   " +

                        " 0   0   0   5++ 3++ 4++ 3++ 5++ 0   0   0   0   4++ 3++ 3++ 3++ 2++ " +
                        " 0   0   0   1++ 2++ 1++ 3++ 0   2++ 2++ 0   0   3++ 2++ " +
                        //73
                        " 1++ 6+  1++ 0   0   5+  6+  1++ 3++ 0   0   4++ 2++ 0   0   0   1++ 2++ " +
                        " 3++ 0   4++ 2++ 0   6++ 0   0   6++ 0   6++ 0   6++ 0   6++ 6++ 6++ 6++ " +

                        //77
                        " 6++ 5++ 0   0   0   0   0   0   1+  1+  3+  0   5+  0   0   5+  0   4+  3+  0   " +
                        " 4+  0   0   3+  0   2+  3+  0   1+  0   1+  " +

                        //81
                        " 0   0   0   0   0   0   0   0   3+  0   2+  3+  0   2++ 0   2++ 0   0   0   0   0   " +
                        " 1++ 2++ 3++ 0   3++ 3++ 0   3++ 4++ 0   2++ 0   0   0   0   0   0   0   0   " +
                        " 1+  0   2+  3+  0   5+  0   0   5+  0   4+  3+  0   4+  0   0   3+  0   2+  3+  " +
                        " 0   1++ 0   1++ " +
                        //88

                        " 0   0   0   0   0   0   0   0   3+  0   2+  3+  0   2++ 0   2++ 0   0   0   0   0   " +
                        " 1++ 2++ 3++ 0   3++ 3++ 0   3++ 0   3++ 0   0   2++ 1++ 0   7+  0   1++ 0   ";
        String accompaniments1 =

                        " 1-  5-  1   2   0   0   0   " +
                                " 2-- 6-- 2-  6-- 4-  6-- 2-  6-- " +
                                " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                                " 2-- 6-- 2-  6-- 4-  6-- 2-  6-- " +
                                " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                                " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                                " 2-- 6-- 2-  6-- 4-  6-- 2-  6-- " +
                                " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                                " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                                " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                                " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                                " 1-  5-  1   5-  3   5-  1   5-  " +
                                " 1-  5-  1   5-  3   5-  1   5-  " +
                                " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                                " 1-  5-  1   5-  3   5-  1   5-  " +
                                " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                                " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                                //77
                                " 1-  5-  1   5-  3   5-  1   5-  " +
                                " 1-  5-  1   5-  3   5-  1   5-  " +
                                " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                                " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                                " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                                " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                                " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                                //85
                                " 1-  5-  1   5-  3   5-  1   5-  " +
                                " 1-  5-  1   5-  3   5-  1   5-  " +
                                " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                                " 6-- 3-  6-  3-  1   3-  6-  3-  " +
                                " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                                " 4-- 1-  4-  1-  6-  1-  4-  1-  " +
                                " 5-- 2-  5-  2-  7-  2-  5-  2-  " +
                                " 5-- 0   2-  0   5-  0   2-  0   " +
                                " 7-  0   2-  0   5-  0   2-  0   " +
                                "";



//        new AudioPlay(100).loadNotes(notes+note1 ).start();
        //正常速度
        new AudioPlay(280).loadNotes(notes+note1 ).start();
        /**
         * 副音部分
         */
        new AudioPlay(280).loadNotes(accompaniments+accompaniments1 ).start();
        new Animation(280).loadNotes(notes+note1 ).start();
    }
}
